home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d2 / rebooter.arc / REBOOTER.TXT < prev   
Text File  |  1989-06-19  |  8KB  |  200 lines

  1.                         
  2.  
  3.  
  4.                    An Automatic Re-Booter for your Board
  5.  
  6.                         by Matthew Lewis
  7.  
  8.                         Sysop of Media Shack PCBoard
  9.                         Toronto, Ontario, Canada
  10.                         (416) 699-1846 ■ 300-2400 bps
  11.  
  12.  
  13.         Background:
  14.  
  15.         This came about because of a couple of events that for
  16.         some reason didn't successfully complete, and the board
  17.         failed to reload, leaving my board down for most of the
  18.         day until I retured home from work.
  19.  
  20.         I originally connected a telephone answering machine to
  21.         the board's phone line, and set it to answer on the
  22.         fourth ring.  As the board normally answers on the first
  23.         or second ring, under normal conditions, the answering
  24.         macnine would do nothing, but if the board failed to
  25.         answer the phone, the machine would answer on the fourth
  26.         ring, play a tape to the caller advising him to wait
  27.         about a minute and call back, and reboot the computer.
  28.         The last commands in my AUTOEXEC.BAT file would reload
  29.         and start the board program.
  30.  
  31.         After some proding by some other sysops who heard about
  32.         this, and wanted one themselves, I designed the circuit
  33.         described below.  I have designed this circuit so that it
  34.         can be built from parts which should be available at any
  35.         Radio Shack store, not because of any particular fondness
  36.         for Radio Shack, but just because this will virtually
  37.         guarantee availability of the parts anywhere.  The total
  38.         cost for all required parts should be less than $20.00.
  39.  
  40.         Parts List:
  41.  
  42.         You will need the following parts.
  43.  
  44.         2 - Opto-isolators similar to Motorola 4N36
  45.         1 - Operational Amplifier or Comparitor IC (741, 1458,
  46.             TL082, LM358, etc.) (I used an LM358J)
  47.         1 - Silicon Diode - Virtually any will do  (D1)
  48.         1 - 100 nF (0.1 uF) capacitor - min 100 volt rating (C1)
  49.         1 - 470 uF capacitor - min 16 volt rating (C2)
  50.         1 - 680 ohm 1/4 watt resistor (R7)
  51.         1 - 1,000 ohm 1/4 watt resistors (R2)
  52.         1 - 10,000 ohn 1/4 watt resistor (R1)
  53.         2 - 100,000 ohm 1/4 watt resistors (R4 & R5)
  54.         1 - 22,000 ohm 1/4 watt resistor (R3)
  55.         1 - 20,000 ohm multi-turn trimpot (R6)
  56.         1 - piece of perf-board to build it on
  57.         misc wire and hardware for mounting
  58.  
  59.  
  60.         That's it for the parts you'll need.  Now on to my
  61.         attempt at a schematic diagram.
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.         Schematic Diagram of Auto Re-Booter
  72.  
  73.  
  74.                                               + 12 v
  75.                                                 │
  76.       Line 1   ┌───────┐         ┌──────────┐   │
  77.       ─────────┤ C 1   ├─────┬───┤a        c├───┘
  78.                └───────┘   ┌─┴─┐ │          │
  79.                            ├───┤ │ Opto-    │
  80.                            │D 1│ │ isolator │
  81.                            │   │ │          │
  82.       Line 2   ┌────────┐  └─┬─┘ │          │    ┌────────┐
  83.       ─────────┤ R 1    ├────┴───┤k        e├────┤  R 2   ├───┐
  84.                └────────┘        └──────────┘    └────────┘   │
  85.                                                               │
  86.                                                               │
  87.      ┌───────┬───────┬────────────────────────────────────────┘
  88.      │       │       │                  ┌─┐
  89.   ┌──┴──┐  ┌─┴─┐     │                  │ └─┐ + 12 v
  90.   │ C 2 │  │   │     │   ┌───────┐      │   └─┐ │
  91.   │     │  │R 3│     └───┤ R 4   ├──────┤ +   └─┤
  92.   └──┬──┘  │   │         └───────┘      │       └─┐
  93.      │     └─┬─┘                        │ Op-Amp  ├──────┐
  94.      G       G           ┌───────┐      │       ┌─┘      │
  95.                    ┌─────┤ R 5   ├──────┤ -   ┌─┤      ┌─┴─┐
  96.                    │     └───────┘      │   ┌─┘ │      │   │
  97.                    │                    │ ┌─┘   G      │R 7│
  98.         + 12v      │                    └─┘            │   │
  99.           │        │                                   └─┬─┘
  100.           │        │                                     │
  101.         ┌─┴─┐      │         ┌───────────────────────────┘
  102.         │   │      │         │
  103.         │R 6│      │         │  ┌──────────────┐
  104.         │   │<─────┘         │  │              │ to Reset Switch +
  105.         │   │                └──┤a            c├───────────────────
  106.         │   │                   │              │
  107.         │   │                   │  Opto-       │
  108.         └─┬─┘                   │   isolator   │
  109.           │                     │              │
  110.           G                     │              │ to Reset Switch - (G)
  111.                            ┌────┤k            e├───────────────────
  112.                            │    │              │
  113.                            G    └──────────────┘
  114.  
  115.         Notes:   Opto-Isolators
  116.                  a = anode of LED
  117.                  k = cathode of LED
  118.                  c = collector of transistor
  119.                  e = emitter of transistor
  120.  
  121.                  G = ground connections
  122.  
  123.                  Op-Amp
  124.                  + = non-inverting input
  125.                  - = inverting input
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.         Theory of operation:
  138.  
  139.         When the phone rings, a voltage of about 80-90 volts,
  140.         peak to peak, aproximating a square wave, is placed on
  141.         the line.  This signal is passed by capacitor C1 and
  142.         resistor R1 to the LED of the first opto-isolator causing
  143.         it to light on one half cycle.  Diode D1 is there to
  144.         conduct on the other half cycle.  During the time that
  145.         the LED is forward biased, and lighted, the
  146.         photo-transistor will conduct, charging capacitor C2
  147.         through resistor R2.  When the phone is not ringing,
  148.         capacitor C2 will discharge via resistor R3, at a slower
  149.         rate that it is charged at while the phone is ringing.
  150.         The voltage on C2 is coupled to the non-inverting input
  151.         of the op-amp via resistor R4, and when it becomes more
  152.         positive (by just a couple of microvolts) than the
  153.         voltage at the wiper of R6, then the output of the op-amp
  154.         will rise to about 10.5 volts, causing the LED of the
  155.         second opto-isolator to be forward biased, and lit,
  156.         causing the photo-transistor to conduct, and the computer
  157.         will re-boot just as if you pressed the reset button.
  158.  
  159.         Trimpot R6 is adjusted for the Op-Amp output to go
  160.         positive after the desired number of rings.  In my own
  161.         case, I found that when the voltage at the wiper of R6 is
  162.         set to 7.5 volts, with respect to ground, the computer
  163.         will reboot on the fourth ring.  The higher the voltage
  164.         on the wiper of R6, the more rings it will take before
  165.         the computer reboots.
  166.  
  167.         CAUTION:
  168.  
  169.         I am using this device on an XT clone, but have been told
  170.         by someone else who tried a similar idea on an AT, that
  171.         if the reset button is pressed a second time before DOS
  172.         gets loaded, it will go into the CMOS setup, and wait for
  173.         input from the keyboard.  I have no way to test this, so
  174.         if you're using an AT or clone, try hitting the reset
  175.         button again before DOS gets loaded to see what happens,
  176.         BEFORE INSTALLING THIS DEVICE!
  177.  
  178.         DISCLAIMER:
  179.  
  180.         I make no guarantee what-so-ever that the above described
  181.         device will work for you, or meet your phone company's
  182.         acceptance.  Furthermore, I will not be responsible in
  183.         any way for any loss of any kind that you may suffer
  184.         because of using this device.
  185.  
  186.         The ONLY claim that I make is that I have used the above
  187.         described device on my own system, and it works for me.
  188.  
  189.         Closing Statement:
  190.  
  191.         I hope that you will find this device usefull, and if you
  192.         do, I would appreciate a note in either the InterLink or
  193.         CanConfMail/SmartNet Sysop conference.
  194.  
  195.                 Matthew Lewis - Sysop - Media Shack PCBoard
  196.                 Toronto, Ontario - (416) 699-1846
  197.  
  198.  
  199. 
  200.